import request from '@/utils/axios'

// 获取销售订单列表
export function getOrderList(data) {
  return request({
    path: '/order/list',
    data
  })
}

// 获取订单详情
export function getOrderDetail(data) {
  return request({
    path: '/order/detail',
    data
  })
}

// 更新订单状态
export function updateOrderStatus(data) {
  return request({
    path: '/order/updateStatus',
    data
  })
}

// 添加订单
export function addOrder(data) {
  return request({
    path: '/order/add',
    data
  })
}

// 编辑订单
export function editOrder(data) {
  return request({
    path: '/order/edit',
    data
  })
}

// 删除订单
export function deleteOrder(data) {
  return request({
    path: '/order/delete',
    data
  })
}